Hello,
I use this script for import my contact.
http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/
Is it possible to add "display as" in the value ?
Thx a lot.
Technology Tips and News
Hello,
I use this script for import my contact.
http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/
Is it possible to add "display as" in the value ?
Thx a lot.
If you add a field to the CSV DisplayAs and then make the following modification to the line that sets the EmailAddress that should work
"Email"
{
$ExchangeContact.EmailAddresses[[Microsoft.Exchange.WebServices.Data.EmailAddressKey]::($MappingArray[1])] = $ContactItem.$Key;
if($MappingArray[1] -eq "EmailAddress1"){
$ExchangeContact.EmailAddresses[[Microsoft.Exchange.WebServices.Data.EmailAddressKey]::EmailAddress1].Name = $ContactItem.DisplayAs;
}
}
cheersIf you add a field to the CSV DisplayAs and then make the following modification to the line that sets the EmailAddress that should work
"Email"
{
$ExchangeContact.EmailAddresses[[Microsoft.Exchange.WebServices.Data.EmailAddressKey]::($MappingArray[1])] = $ContactItem.$Key;
if($MappingArray[1] -eq "EmailAddress1"){
$ExchangeContact.EmailAddresses[[Microsoft.Exchange.WebServices.Data.EmailAddressKey]::EmailAddress1].Name = $ContactItem.DisplayAs;
}
}
cheersTHX A LOT !
It's working perfectly !